<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<link rel="stylesheet" href="{:C('VSHOP_CSS')}person.css"/>
</head>
<body>
<header>
  <div class="head"><a href="javascript:history.go(-1);" class="head-return"></a><a href="javascript:void(0);" class="head-delete"></a>
    <h2 class="head-title">购物车</h2>
  </div>
</header>
<div class="cart-edit-box">
  <dl id="selectSupplier_3">
  <notempty name="res">
    <main>
     <foreach name="res" item="cart">
      <dd><em><input type="checkbox" checked="checked" value="{$cart.id}" name="id" class="del_{$cart.id}" onclick="$.carttotal.total({$cart.id})" ></em><span class="left-pic"><a href="{:U('ItemDetail/index',array('itemid'=>$cart['itemid']))}"><img src="{:C('SITENAME')}{$cart.itemimg}"></a></span><span class="right-info">
        <p class="f14">{$cart.itemname}..</p>
        <p class="gray f12">{$cart.bn}</p>
        <p class="gray f12"><span class="choose-tit">数量：</span><span class="num-box"><a href="javascript:void(0)" 
        onclick="$.cart.togglenum({$cart.id},'reduce',{$cart.price},{$cart.inventory})"> <i class="i-1">-</i> </a>
        <input name="num" type="text"   readonly="readonly"  class="num num_{$cart['id']}" value="{$cart.number}">
        <a href="javascript:void(0)" onclick="$.cart.togglenum({$cart.id},'add',{$cart.price},{$cart.inventory})"> <i class="i-2">+</i></a></span><span class="unit">件</span></p>
       <p class="change"><span class="choose-tit" style="width:100%">规格：{$cart.speci}</p></span> 
        </span>
        <div class="price">
          <p class="red f14"><strong class="total_{$cart['id']}">￥{$cart.totalprice}</strong></p>
          <p class="liang_{$cart['id']}">x{$cart.number}</p>
        </div>
      </dd>
      </foreach>

      <dd class="account"  >
        <p><span class="left">商品数量：</span><strong class="right" id="totalnum">X{$totalnum}</strong></p>
        <p class="mt-10"><span class="left">总金额：</span><strong class="right red f14px" id="totalprice">￥{$total}</strong></p>
      </dd>
      <div class="blank15"></div>
      <a href="javascript:void(0);"  class="btn-red">去结算</a>
    </main>
    </notempty>
  </dl>
</div>
<div class="blank10"></div>
<script src="{:C('VSHOP_JS')}jquery-1.9.1.min.js"></script>
<script src="{:C('VSHOP_JS')}public.js"></script>
<script src="{:C('VSHOP_JS')}cart.js"></script>
<script type="text/javascript"  src="__PUBLIC__/common/js/jquery.cookie.js"></script>
</body>
</html>

